<?php
//by willson 105328468@qq.com 2014/10/11
//index page interface

class article_model extends base_model {

	public function __construct() {
		parent::__construct();
	}

	//获取文章详情
	public function detail($id) {
		$str = '-';
		$sql = "SELECT * FROM jf_article WHERE status=1 AND id='{$id}'";
		$row = $this->db->get_row($sql);
		return $row;
	}
}
